package com.ruyuan.engine.datagen;
import com.ruyuan.engine.pojo.ClientLog;
import com.ruyuan.engine.utils.Constants;
import com.ruyuan.engine.utils.HBaseUtils;
import com.ruyuan.engine.utils.RedisUtils;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.hadoop.hbase.client.HTable;
import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.util.Bytes;
import redis.clients.jedis.Jedis;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

/**
 *  生成：犯罪高发地
 */
public class MockDangerCitys {
    static Jedis jedis = null;

    public static void main(String[] args) throws InterruptedException {
//        mockData();
        checkData();
    }

    private static void checkData() {
        jedis = RedisUtils.getJedis();
        String dangerCitys = jedis.get("dangerCitys");
        System.out.println(dangerCitys);
        jedis.close();
    }

    private static void mockData()  {
        jedis = RedisUtils.getJedis();
        jedis.set("dangerCitys","北京|上海|深圳|广州|武汉|长沙|重庆");
        jedis.close();

    }


}
